/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

import java.util.Date;

/**
 * 订单Entity
 */
@Table(name="biz_order", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="platform", attrName="platform", label="平台【APP或H5】"),
		@Column(name="trans_member_id", attrName="transMemberId", label="转发会员Id"),
		@Column(name="member_id", attrName="memberId", label="会员Id"),
		@Column(name="trans_activity_id", attrName="transActivityId", label="转发Id"),
		@Column(name="parent_id", attrName="parentId", label="父订单Id"),
		@Column(name="brand_id", attrName="brandId", label="品牌Id"),
		@Column(name="pay_method", attrName="payMethod", label="支付方式【Alipay/Wechat】"),
		@Column(name="num", attrName="num", label="数量"),
		@Column(name="amount", attrName="amount", label="合计"),
		@Column(name="freight", attrName="freight", label="运费"),
		@Column(name="total", attrName="total", label="合计"),
		@Column(name="receive_id", attrName="receiveId", label="收件人Id"),
		@Column(name="send_id", attrName="sendId", label="寄件人Id"),
		@Column(name="cancel_date", attrName="cancelDate", label="取消时间"),
		@Column(name="pay_trade_no", attrName="payTradeNo", label="支付单号"),
		@Column(name="pay_transaction_id", attrName="payTransactionId", label="微信交易号"),
		@Column(name="open_id", attrName="openId", label="微信OpenId"),
		@Column(name="pay_date", attrName="payDate", label="支付时间"),
		@Column(name="delivery_date", attrName="deliveryDate", label="发货时间"),
		@Column(name="recipient_date", attrName="recipientDate", label="收货时间"),
		@Column(name="service_status", attrName="serviceStatus", label="售后状态"),
		@Column(name="service_type", attrName="serviceType", label="售后类型"),
		@Column(name="service_image", attrName="serviceImage", label="售后凭证"),
		@Column(name="service_reason", attrName="serviceReason", label="售后原因"),
		@Column(name="service_date", attrName="serviceDate", label="售后时间"),
		@Column(name="service_num", attrName="serviceNum", label="售后数量"),
		@Column(name="service_amount", attrName="serviceAmount", label="售后金额"),
		@Column(name="agent_audit_status", attrName="agentAuditStatus", label="代理审核状态"),
		@Column(name="agent_audit_result", attrName="agentAuditResult", label="代理审核结果"),
		@Column(name="agent_audit_date", attrName="agentAuditDate", label="代理审核时间"),
		@Column(name="agent_audit_reason", attrName="agentAuditReason", label="代理审核原因"),
		@Column(name="sys_audit_status", attrName="sysAuditStatus", label="系统审核状态"),
		@Column(name="sys_audit_user_id", attrName="sysAuditUserId", label="系统审核人Id"),
		@Column(name="sys_audit_result", attrName="sysAuditResult", label="系统审核结果"),
		@Column(name="sys_audit_date", attrName="sysAuditDate", label="系统审核时间"),
		@Column(name="sys_audit_reason", attrName="sysAuditReason", label="系统审核原因"),
		@Column(name="waybill_no", attrName="waybillNo", label="运单号"),
		@Column(name="express_company", attrName="expressCompany", label="快递公司"),
		@Column(name="title", attrName="title", label="标题"),
		@Column(name="signed_date", attrName="signedDate", label="收到退货时间"),
		@Column(name="refund_date", attrName="refundDate", label="退款时间"),
		@Column(name="is_deleted", attrName="isDeleted", label="删除"),
		@Column(name="deleted_date", attrName="deletedDate", label="删除时间"),
		@Column(name="status", attrName="status", label="状态【待付款/待发货/待收货/已取消/售后】"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
	}, orderBy="a.update_date DESC"
)
public class Order extends DataEntity<Order> {
	
	private static final long serialVersionUID = 1L;
	private String platform;		// 平台
	private String transMemberId;		// 转发会员Id
	private String memberId;		// 会员Id
	private String transActivityId;		// 转发Id
	private String parentId;		// 父订单Id
	private String brandId;		// 品牌Id
	private String payMethod;	// 支付方式【Alipay/Wechat】
	private Integer num;		// 数量
	private Double amount;		// 合计
	private Double freight;		// 运费
	private Double total;		// 合计
	private String remark;		// 备注
	private String receiveId;		// 收件人Id
	private String sendId;		// 寄件人Id
	private Date cancelDate;		// 取消时间
	private String title;		// 商品标题

	public Date getSignedDate() {
		return signedDate;
	}

	public void setSignedDate(Date signedDate) {
		this.signedDate = signedDate;
	}

	private Date signedDate;		// 收到退货时间

	public Date getRefundDate() {
		return refundDate;
	}

	public void setRefundDate(Date refundDate) {
		this.refundDate = refundDate;
	}

	private Date refundDate;		// 退款时间

	public String getPayTradeNo() {
		return payTradeNo;
	}

	public void setPayTradeNo(String payTradeNo) {
		this.payTradeNo = payTradeNo;
	}

	private String payTradeNo;		// 支付单号

	public String getPayTransactionId() {
		return payTransactionId;
	}

	public void setPayTransactionId(String payTransactionId) {
		this.payTransactionId = payTransactionId;
	}

	private String payTransactionId;		// 微信交易号


	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	private String openId;		// 微信OpenId


	private Date payDate;		// 支付时间
	private Date confirmDate;		// 确认时间
	private Date deliveryDate;		// 发货时间
	private Date recipientDate;		// 收货时间

	public String getServiceStatus() {
		return serviceStatus;
	}

	public void setServiceStatus(String serviceStatus) {
		this.serviceStatus = serviceStatus;
	}

	private String serviceStatus;		// 售后状态
	private String serviceType;		// 售后类型
	private String serviceImage;		// 售后凭证
	private String serviceReason;		// 售后原因
	private Date serviceDate;		// 售后日期

	public Integer getServiceNum() {
		return serviceNum;
	}

	public void setServiceNum(Integer serviceNum) {
		this.serviceNum = serviceNum;
	}

	private Integer serviceNum;		// 售后数量

	public Double getServiceAmount() {
		return serviceAmount;
	}

	public void setServiceAmount(Double serviceAmount) {
		this.serviceAmount = serviceAmount;
	}

	private Double serviceAmount;		// 售后金额

	public String getAgentAuditStatus() {
		return agentAuditStatus;
	}

	public void setAgentAuditStatus(String agentAuditStatus) {
		this.agentAuditStatus = agentAuditStatus;
	}

	private String agentAuditStatus;		// 代理审核状态

	public String getAgentAuditResult() {
		return agentAuditResult;
	}

	public void setAgentAuditResult(String agentAuditResult) {
		this.agentAuditResult = agentAuditResult;
	}

	private String agentAuditResult;		// 代理审核结果
	private Date agentAuditDate;		// 代理审核时间

	public String getAgentAuditReason() {
		return agentAuditReason;
	}

	public void setAgentAuditReason(String agentAuditReason) {
		this.agentAuditReason = agentAuditReason;
	}

	private String agentAuditReason;		// 代理审核原因

	public String getSysAuditStatus() {
		return sysAuditStatus;
	}

	public void setSysAuditStatus(String sysAuditStatus) {
		this.sysAuditStatus = sysAuditStatus;
	}

	private String sysAuditStatus;		// 系统审核状态

	public String getSysAuditResult() {
		return sysAuditResult;
	}

	public void setSysAuditResult(String sysAuditResult) {
		this.sysAuditResult = sysAuditResult;
	}

	public String getSysAuditUserId() {
		return sysAuditUserId;
	}

	public void setSysAuditUserId(String sysAuditUserId) {
		this.sysAuditUserId = sysAuditUserId;
	}

	private String sysAuditUserId;		// 系统审核用户
	private String sysAuditResult;		// 系统审核结果
	private Date sysAuditDate;		// 系统审核时间

	public String getSysAuditReason() {
		return sysAuditReason;
	}

	public void setSysAuditReason(String sysAuditReason) {
		this.sysAuditReason = sysAuditReason;
	}

	private String sysAuditReason;		// 系统审核原因

	public String getWaybillNo() {
		return waybillNo;
	}

	public void setWaybillNo(String waybillNo) {
		this.waybillNo = waybillNo;
	}

	private String waybillNo;		// 运单号

	public String getExpressCompany() {
		return expressCompany;
	}

	public void setExpressCompany(String expressCompany) {
		this.expressCompany = expressCompany;
	}

	private String expressCompany;		// 快递公司
	private Boolean isDeleted;		// 删除

	public Date getDeletedDate() {
		return deletedDate;
	}

	public void setDeletedDate(Date deletedDate) {
		this.deletedDate = deletedDate;
	}

	private Date deletedDate;		// 删除时间

	public Order() {
		this(null);
	}

	public Order(String id){
		super(id);
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getTransMemberId() {
		return transMemberId;
	}

	public void setTransMemberId(String refMemberId) {
		this.transMemberId = refMemberId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getTransActivityId() {
		return transActivityId;
	}

	public void setTransActivityId(String transActivityId) {
		this.transActivityId = transActivityId;
	}

	public String getReceiveId() {
		return receiveId;
	}

	public void setReceiveId(String receiveId) {
		this.receiveId = receiveId;
	}

	public String getSendId() {
		return sendId;
	}

	public void setSendId(String sendId) {
		this.sendId = sendId;
	}

	public Date getConfirmDate() {
		return confirmDate;
	}

	public void setConfirmDate(Date confirmDate) {
		this.confirmDate = confirmDate;
	}

	public Date getCancelDate() {
		return cancelDate;
	}

	public void setCancelDate(Date cancelDate) {
		this.cancelDate = cancelDate;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public Date getRecipientDate() {
		return recipientDate;
	}

	public void setRecipientDate(Date recipientDate) {
		this.recipientDate = recipientDate;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getServiceType() {
		return serviceType;
	}

	public void setServiceType(String serviceType) {
		this.serviceType = serviceType;
	}

	public String getServiceImage() {
		return serviceImage;
	}

	public void setServiceImage(String serviceImage) {
		this.serviceImage = serviceImage;
	}

	public String getServiceReason() {
		return serviceReason;
	}

	public void setServiceReason(String serviceReason) {
		this.serviceReason = serviceReason;
	}

	public Date getServiceDate() {
		return serviceDate;
	}

	public void setServiceDate(Date serviceDate) {
		this.serviceDate = serviceDate;
	}


	public Date getAgentAuditDate() {
		return agentAuditDate;
	}

	public void setAgentAuditDate(Date agentAuditDate) {
		this.agentAuditDate = agentAuditDate;
	}

	public Date getSysAuditDate() {
		return sysAuditDate;
	}

	public void setSysAuditDate(Date sysAuditDate) {
		this.sysAuditDate = sysAuditDate;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getPayMethod() {
		return payMethod;
	}

	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Double getFreight() {
		return freight;
	}

	public void setFreight(Double freight) {
		this.freight = freight;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}
}